﻿<BaseControl:DialogControl x:Class="jSLApp.Client.Forms.PersonalPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:sel="clr-namespace:jSLCore.Client.Presentation.Wpf.TelerikSupport.Selection;assembly=jSLCore.Client.Presentation.Telerik" xmlns:radcol="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:Columns="clr-namespace:jSLCore.Client.Presentation.Wpf.TelerikSupport.Selection.Columns;assembly=jSLCore.Client.Presentation.Telerik" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <j:ImageGroupBox AllowScroll="True">
    	<j:ImageGroupBox.Header>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Детализация пользователя"/>
                <HyperlinkButton Content="Обновить" Click="reload_Clicked"/>
            </StackPanel>
        </j:ImageGroupBox.Header>
    	<StackPanel Orientation="Vertical">
            <j:LeftHeaderContainer Header="Имя пользователя:">
                <TextBlock Name="nameTxt"/>
            </j:LeftHeaderContainer>
            <j:LeftHeaderContainer Header="Баланс:">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Name="balanceTxt" VerticalAlignment="Center"/>
                    <HyperlinkButton Content="Пополнить" Click="pay_Clicked"/>
                </StackPanel>
            </j:LeftHeaderContainer>
            <j:ImageGroupBox Header="История пополнения баланса">
                <sel:jSLRadGrid x:Name="payGrid">
                    <sel:jSLRadGrid.Columns>
                        <radcol:GridViewDataColumn Header="Способ оплаты" DataMemberBinding="{Binding Info}"/>
                        <Columns:jSLMoneyColumn Header="Сумма" DataMemberBinding="{Binding Price}"/>
                        <Columns:jSLDateColumn Header="Дата" DataMemberBinding="{Binding CreationDate}" DataFormatString="dd.MM.yyyy hh:mm"/>
                    </sel:jSLRadGrid.Columns>
                </sel:jSLRadGrid>
            </j:ImageGroupBox>
            <j:ImageGroupBox Header="Купленные фильмы">
                <sel:jSLRadGrid x:Name="buyGrid" GoDetailsClick="goFilm_Clicked">
                    <sel:jSLRadGrid.Columns>
                        <Columns:GoDetailsColumn Header="Название фильма" DataMemberBinding="{Binding FilmName}"/>                                                
                        <Columns:jSLMoneyColumn Header="Цена" DataMemberBinding="{Binding Price}"/>
                        <Columns:jSLDateColumn Header="Дата" DataMemberBinding="{Binding CreationDate}" DataFormatString="dd.MM.yyyy hh:mm"/>
                    </sel:jSLRadGrid.Columns>
                </sel:jSLRadGrid>
            </j:ImageGroupBox>
        </StackPanel>
    </j:ImageGroupBox>
</BaseControl:DialogControl>
